import 'package:flutter/material.dart';

import '../core/axis.dart';

class OscilloscopeYAxis extends StatelessWidget implements YAxis {
  OscilloscopeYAxisDirection? direction;

  OscilloscopeYAxis({super.key, OscilloscopeYAxisDirection? direction})
      : direction = direction ?? OscilloscopeYAxisDirection.left;

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.cyanAccent,
      width: 20,
      margin: const EdgeInsets.symmetric(horizontal: 6),
    );
  }
}

class OscilloscopeXAxis extends StatelessWidget implements XAxis {
  OscilloscopeXAxisDirection? direction;

  OscilloscopeXAxis({super.key, OscilloscopeXAxisDirection? direction})
      : direction = direction ?? OscilloscopeXAxisDirection.bottom;

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.green,
      height: 20,
      margin: const EdgeInsets.symmetric(vertical: 6),
    );
  }
}

enum OscilloscopeYAxisDirection {
  left,
  right,
}

enum OscilloscopeXAxisDirection {
  top,
  bottom,
}
